package com.ruoyi.caiwu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.caiwu.mapper.AccountBookGeneralMapper;
import com.ruoyi.caiwu.domain.AccountBookGeneral;
import com.ruoyi.caiwu.service.IAccountBookGeneralService;

/**
 * 总账Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class AccountBookGeneralServiceImpl implements IAccountBookGeneralService
{
    @Autowired
    private AccountBookGeneralMapper accountBookGeneralMapper;

    /**
     * 查询总账
     *
     * @param id 总账主键
     * @return 总账
     */
    @Override
    public AccountBookGeneral selectAccountBookGeneralById(Long id)
    {
        return accountBookGeneralMapper.selectAccountBookGeneralById(id);
    }

    /**
     * 查询总账列表
     *
     * @param accountBookGeneral 总账
     * @return 总账
     */
    @Override
    public List<AccountBookGeneral> selectAccountBookGeneralList(AccountBookGeneral accountBookGeneral)
    {
        return accountBookGeneralMapper.selectAccountBookGeneralList(accountBookGeneral);
    }


}
